<template>
	<v-forms ref="formRef"> </v-forms>
</template>
<script lang="ts" setup>
import { ref } from 'vue';
import { VForms, distrubuteActionFormConfig } from '../config/index';
import useCurrentInstance from '/@/utils/hook/useCurrentInstance';
const { proxy } = useCurrentInstance();
const $t = proxy.$t;
const formRef = ref();
//新增数据变更
const addNew = (data: any) => {
	let list: any = distrubuteActionFormConfig(data);
	formRef.value.openDialog(list, $t('z0RsYhGgrakDgCk21yrHn'));
};

defineExpose({
	addNew,
});
</script>
<scope lang="scss" scoped></scope>
